using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Business;
public partial class MasterPage_CustomerMasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            DataTable dt = bProduct.getAllProduct();
            foreach (DataRow dr in dt.Rows)
            {
                MenuItem mi = new MenuItem();
                mi.Text = dr["producName"].ToString();
                mi.NavigateUrl = "~/CustomerPage/PlanView.aspx?ProductID=" + dr["productID"].ToString();
                mnProduct.Items[0].ChildItems.Add(mi);
            }
        }
    }
}
